package com.ybkj.o2o.zhuanche.mapper;

import com.ybkj.o2o.zhuanche.entity.OrderMemo;
import com.ybkj.o2o.zhuanche.entity.OrderMemoCriteria;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface OrderMemoMapper extends BaseMapper<OrderMemo, OrderMemoCriteria, Long> {
  Long countByExample(OrderMemoCriteria example);

  int deleteByExample(OrderMemoCriteria example);

  int deleteByPrimaryKey(Long id);

  int insert(OrderMemo record);

  int insertSelective(OrderMemo record);

  List<OrderMemo> selectByExampleWithRowbounds(OrderMemoCriteria example, RowBounds rowBounds);

  List<OrderMemo> selectByExample(OrderMemoCriteria example);

  OrderMemo selectByPrimaryKey(Long id);

  int updateByExampleSelective(@Param("record") OrderMemo record,
      @Param("example") OrderMemoCriteria example);

  int updateByExample(
      @Param("record") OrderMemo record, @Param("example") OrderMemoCriteria example);

  int updateByPrimaryKeySelective(OrderMemo record);

  int updateByPrimaryKey(OrderMemo record);

  List<OrderMemo> findByOrderId(@Param("orderId")Long orderId);
}
